{% extends "base.html" %}

{% block title %}
{% ifequal lang 'en' %}
{% if current_department == "AC" %}Administrative Staff{% endif %}
{% if current_department == "TC" %}Technical Committee{% endif %}
{% if current_department == "FT" or current_department == "AS" or current_department == "TS" %}Faculty &amp; Staff{% endif %}
{% if current_department == "IT" %}Interns{% endif %}
{% if current_department == "AU" %}Alumni{% endif %}
{% else %}{% ifequal lang 'zh' %}
{% if current_department == "AC" %}顾问委员会{% endif %}
{% if current_department == "TC" %}技术委员会{% endif %}
{% if current_department == "FT" or current_department == "AS" or current_department == "TS" %}实验室成员{% endif %}
{% if current_department == "IT" %}实习生{% endif %}
{% if current_department == "AU" %}历任成员{% endif %}
{% endifequal %}{% endifequal %}
{% endblock %}

{% block style %}
{% ifequal lang 'en' %}
td {
    height:18px;
    border-bottom:solid thin #CCC;
}
{% else %}{% ifequal lang 'zh' %}
td {
    height:18px;
    line-height:18px;
    border-bottom:solid thin #CCC;
}
a:link {
    text-decoration: none;
}
a:visited {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}
a:active {
    text-decoration: none;
}
{% endifequal %}{% endifequal %}
{% endblock %}

{% block content %}
<div id="Content">
    <div id="list" style="width:175px">
	<ul>
	    {% ifequal lang 'en' %}
	    <li><a href="/{{lang}}/community/advisory-committee" {% if current_department == "AC" %}id="current"{% endif %}>Advisory Committee</a></li>
	    <li><a href="/{{lang}}/community/technical-committee" {% if current_department == "TC" %}id="current"{% endif %}>Technical Committee</a></li>
	    <li><a href="/{{lang}}/community/faculty" {% if current_department == "FT" or current_department == "AS" or current_department == "TS" %}id="current"{% endif %}>Faculty &amp; Staff</a></li>
	    {% if current_department == "FT" or current_department == "AS" or current_department == "TS" %}
	    <li><a style="text-indent:1em; font-size:10px" href="/{{lang}}/community/faculty" {% if current_department == "FT" %}id="current"{% endif %}>Faculty</a></li>
	    <li><a style="text-indent:1em; font-size:10px" href="/{{lang}}/community/administrative-staff" {% if current_department == "AS" %}id="current"{% endif %}>Administrative Staffs</a></li>
	    <li><a style="text-indent:1em; font-size:10px" href="/{{lang}}/community/technical-staff" {% if current_department == "TS" %}id="current"{% endif %}>Technical Staff</a></li>
	    {% endif %}
	    <li><a href="/{{lang}}/community/interns" {% if current_department == "IT" %}id="current"{% endif %}>Interns</a></li>
	    <li><a href="/{{lang}}/community/alumni" {% if current_department == "AU" %}id="current"{% endif %}>Alumni</a></li>
	    {% else %}{% ifequal lang 'zh' %}
	    <li><a style="letter-spacing:0.3em" href="/{{lang}}/community/advisory-committee" {% if current_department == "AC" %}id="current"{% endif %}>顾问委员会</a></li>
	    <li><a style="letter-spacing:0.3em" href="/{{lang}}/community/technical-committee" {% if current_department == "TC" %}id="current"{% endif %}>技术委员会</a></li>
	    <li><a style="letter-spacing:0.3em" href="/{{lang}}/community/faculty" {% if current_department == "FT" or current_department == "AS" or current_department == "TS" %}id="current"{% endif %}>实验室成员</a></li>
	    {% if current_department == "FT" or current_department == "AS" or current_department == "TS" %}
	    <li><a style="letter-spacing:0.3em; text-indent:1em; font-size:10px" href="/{{lang}}/community/faculty" {% if current_department == "FT" %}id="current"{% endif %}>研究人员</a></li>
	    <li><a style="letter-spacing:0.3em; text-indent:1em; font-size:10px" href="/{{lang}}/community/administrative-staff" {% if current_department == "AS" %}id="current"{% endif %}>行政人员</a></li>
	    <li><a style="letter-spacing:0.3em; text-indent:1em; font-size:10px" href="/{{lang}}/community/technical-staff" {% if current_department == "TS" %}id="current"{% endif %}>技术人员</a></li>
	    {% endif %}
	    <li><a style="letter-spacing:0.3em" href="/{{lang}}/community/interns" {% if current_department == "IT" %}id="current"{% endif %}>实习生</a></li>
	    <li><a style="letter-spacing:0.3em" href="/{{lang}}/community/alumni" {% if current_department == "AU" %}id="current"{% endif %}>历任成员</a></li>
	    {% endifequal %}{% endifequal %}
	</ul>
    </div>
    <div id="ConRight" style="width:665px">
	{% for person in persons %}
	<div id="Introduction">
	    {% if person.person_homepage %}
	    <div id="privatepage"><a href="{{person.person_homepage}}" target="_blank"></a></div>
	    {% endif %}
	    <div id="potrait"><img src="/media/{{person.person_image}}" width="90" height="120" /></div>
	    <div id="Intro1">
		<table width="500" border="0" cellspacing="0">
		    {% ifequal lang 'en' %}
		    <tr><td class="Name">{{person.person_name_en}}</td></tr>
		    <tr><td class="Dgree">{{person.person_education_en}}</td></tr>
		    <tr><td class="Dgree">{{person.person_title_en}}</td></tr>
		    <tr><td >{{person.person_introduction_en|safe}}</td></tr>
		    {% else %}{% ifequal lang 'zh' %}
		    <tr><td class="Name">{{person.person_name_zh}}</td></tr>
		    <tr><td class="Dgree">{{person.person_education_zh}}</td></tr>
		    <tr><td class="Dgree">{{person.person_title_zh}}</td></tr>
		    <tr><td >{{person.person_introduction_zh|safe}}</td></tr>
		    {% endifequal %}{% endifequal %}
		</table>
	    </div>
	    <div style="clear:both"></div>
	</div>
	{% endfor %}
    </div>
    <div style="clear:both"></div>
</div>
{% endblock %}
